type vendor_hal_sensorcommunicate_hwservice, hwservice_manager_type, protected_hwservice;

type vendor_hal_sensorcommunicate_default, domain;
hal_server_domain(vendor_hal_sensorcommunicate_default, vendor_hal_sensorcommunicate)

type vendor_hal_sensorcommunicate_default_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(vendor_hal_sensorcommunicate_default)

add_hwservice(vendor_hal_sensorcommunicate_server, vendor_hal_sensorcommunicate_hwservice)

allow vendor_hal_sensorcommunicate_client vendor_hal_sensorcommunicate_hwservice:hwservice_manager find;

binder_call(vendor_hal_sensorcommunicate_client, vendor_hal_sensorcommunicate_server)
binder_call(vendor_hal_sensorcommunicate_server, vendor_hal_sensorcommunicate_client)

allow vendor_hal_sensorcommunicate_default vendor_hal_citsensorservice_xiaomi_hwservice:hwservice_manager find;
binder_call(vendor_hal_sensorcommunicate_default, vendor_hal_citsensorservice_xiaomi_default)

allow vendor_hal_sensorcommunicate_client vendor_hal_sensorcommunicate_server:binder { call transfer };
allow vendor_hal_sensorcommunicate_client vendor_hal_sensorcommunicate_server:binder transfer;
allow vendor_hal_sensorcommunicate_client vendor_hal_sensorcommunicate_server:fd *;
allow vendor_hal_sensorcommunicate_client vendor_hal_citsensorservice_xiaomi_hwservice:hwservice_manager find;
allow vendor_hal_sensorcommunicate_server vendor_hal_sensorcommunicate_client:binder transfer;
allow vendor_hal_sensorcommunicate_server vendor_hal_sensorcommunicate_client:binder { call transfer };
allow vendor_hal_sensorcommunicate_server vendor_hal_sensorcommunicate_client:fd *;
allow vendor_hal_sensorcommunicate_default fwk_sensor_hwservice:hwservice_manager find;
allow vendor_hal_sensorcommunicate_default system_server:binder call;
allow vendor_hal_sensorcommunicate_default system_server:binder transfer;
allow vendor_hal_sensorcommunicate_default vendor_hal_citsensorservice_xiaomi_default:binder call;
allow vendor_hal_sensorcommunicate_default vendor_hal_citsensorservice_xiaomi_default:binder transfer;
allow vendor_hal_sensorcommunicate_default mnt_vendor_file:dir search;
allow vendor_hal_sensorcommunicate_default vendor_persist_sensors_file:dir search;
allow vendor_hal_sensorcommunicate_default vendor_persist_sensors_file:file { getattr open read };
hwbinder_use(vendor_hal_sensorcommunicate_default)
